package com.qf.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qf.pojo.DtsOrderGoods;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 订单商品表 Mapper 接口
 * </p>
 *
 * @author zhaojian
 * @since 2021-05-12
 */
public interface DtsOrderGoodsMapper extends BaseMapper<DtsOrderGoods> {

    @Select("SELECT og.*  " +
            "FROM dts_order o " +
            "LEFT JOIN dts_order_goods og " +
            "on o.id=og.order_id " +
            "WHERE og.deleted=0")
    List<DtsOrderGoods> listByOid();
}
